import axios from '@/axios';

export default {
  list() {
    return axios.get('/api/roleManage/list');
  },
  deleteRole(role) {
    return axios.post('/api/roleManage/del',role);
  },
  addRole(role) {
    return axios.post('/api/roleManage/add',role);
  },
  editRole(role) {
    return axios.post('/api/roleManage/edit',role);
  },
  editRoleRights(role){
    return axios.post('/api/roleManage/editRights', role);
  },
  getRoleQx(qx,role_id) {
    var role = {"qx":qx,"role_id":role_id};
    return axios.post('/api/roleManage/qx',role);
  },
};
